﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using zic_dotnet.Domain;

namespace stackFluent.Domain {
    public class Question : IAggregateRoot{
        [Key]
        public Guid ID { get; set; }
        //如果需要关闭问题功能既是Freeze
        public int ActId { get; set; }
        public DateTime DateCreat { get; set; }

        public int Grade { get; set; }
        public int DeviceId { get; set; }

        public int TechId { get; set; }
        public virtual Tech Tech { get; set; }
        public int? UserId { get; set; }
        public virtual User Poster { get; set; }

        public string Title { get; set; }
        public string Html { get; set; }

        public virtual ICollection<Answer> Answers { get; set; }
    }

}